package com.iotmonitor.iot.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import com.iotmonitor.common.core.annotation.Excel;
import com.iotmonitor.common.core.web.domain.BaseEntity;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * 面板配置对象 tb_board
 * 
 * @author ruoyi
 * @date 2023-08-11
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class TbBoard extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    @NotBlank(message = "报警名称长度不能为空", groups = {TbBoard.Update.class})
    private Long id;

    /** 管理员id */
    @Excel(name = "管理员id")
    private Long userId;

    /** 看板名称 */
    @Excel(name = "看板名称")
    @NotBlank(message = "看板名称长度不能为空", groups = {TbBoard.Create.class})
    @Size(min = 0, max = 100, message = "看板名称长度不能超过100个字符", groups = {TbBoard.Create.class})
    private String name;

    /** 指标(趋势时设置) */
    @Excel(name = "指标(趋势时设置)")
    private String quota;

    /** 设备(累计) */
    @Excel(name = "设备(累计)")
    private String device;

    /** 是否是系统看板 */
    @Excel(name = "是否是系统看板")
    private Boolean system;

    /** 是否不显示 */
    @Excel(name = "是否不显示")
    private Boolean disable;

    public TbBoard(String name) {
        this.name = name;
    }
}
